package com.example.springbootdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/hello")
@RestController
public class HelloController {
    @RequestMapping(value = "/sayhi", method = RequestMethod.GET)
    public String sayhi() {
        return "hi World";
    }

    @RequestMapping("/sayhello")
    public String sayhello() {
        return "Hello World";
    }
}
